<template>
    <div> 
       <p>我是孙组件 --{{n}}</p> 
        <button @click="$emit('chuan',m)">点击传递给 爷爷</button>
    </div>
</template>

<script>
export default {
   props:['n'],
   data() {
    return {
        m: 'abcdef',
    };
   },

   
};
</script>

